<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<div id="app">
			<my-component>
				<h3>内容区域</h3>
			</my-component>
		</div>
		<template id="mycomponent">
			<div>
				<p>头部区域</p>
				<slot>如果没有分发内容，则显示默认提示</slot>
				<p>底部区域</p>
			</div>
		</template>
		<script src="../vue.min.js"></script>
		<script type="text/javascript">
			var vm = new Vue({
				el:"#app",
				data:{
					
				},
				components:{
					"my-component":{
						template:"#mycomponent"
					}
				}
			});
		</script>
	</body>
</html>
